/**
 * @Project TMHSC
 * @Author Tran Manh Hung
 * @Email: hungtmit@gmail.com | tmh@xwebgate.com
 * @Copyright © 2011 TMH. All rights reserved
 * @Createdate Feb 1, 2011
 * @Createtime 4:55:52 PM
 */

package com.tmh.study.aASA
{
	import flash.display.Sprite;

	public class Circle extends Sprite
	{
		private var _radius:Number;

		private var _color:Number;

		public function Circle(radius:Number, color:uint = 0x000000)
		{
			_radius = radius;
			_color = color;
			graphics.lineStyle(0, _color);
			graphics.drawCircle(0, 0, _radius);
		}

		public function get radius():Number
		{
			return _radius;
		}

		public function get position():Vector2D
		{
			return new Vector2D(x, y);
		}
	}
}